import type { IPageMapData } from '@/types/home/type' 

const PageDataItem: IPageMapData[] = [
  {
    pageType: '1',
    showAddButton: true,
    tableListShowKey: ['name', 'appid', 'pkg', 'md5', 'url', 'status', 'vnm', 'vcd', 'customer', 'rtaurl', 'bidfloor', 'budget', 'downloadnum', 'channel', 'tagid', 'size', 'mlink', 'msg', 'cpuModel', 'keywords']
  },
  {
    pageType: '2',
    showAddButton: true,
    tableListShowKey: ['name', 'appid', 'pkg', 'md5', 'url', 'status', 'vnm', 'vcd', 'customer', 'rtaurl', 'budget', 'channel', 'size', 'mlink', 'msg', 'cpuModel', 'pkgtype']
  },
  {
    pageType: '3',
    showAddButton: false,
    tableListShowKey: ['name', 'appid', 'pkg', 'md5', 'status', 'detailList', 'customer', 'budget', 'downloadnum', 'channel', 'btime', 'etime']
  }
]

const PageDataInitData = ():any => {
  return PageDataItem.map((item: IPageMapData) => [item.pageType, {...item}])
}

export const PageData = new Map(PageDataInitData())